import App from './App'
import uView from '@/uni_modules/uview-ui'
import navigate from './router'
import axios from './aixos'
import store from './store'
import http from './api'
import tip from './common/tip'
import { joinDomain, loadMore } from '@/utils/tools'

// import vConsole from 'vconsole'
// new vConsole();

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App,
    store
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif


Vue.use(uView)
console.log((axios))
Vue.prototype.$nav = navigate
Vue.prototype.$axios = axios
Vue.prototype.$http = http
Vue.prototype.$tip = tip
Vue.prototype.$loadMore = loadMore
Vue.prototype.joinDomain = joinDomain
